import { createRequest } from '/@/api/service';
const module = 'ib/flowpath/v1/IbFpProductApi/';
/**
 * 查询物品信息结构体
 */
function QUERY_FPR_PRODUCT_LIST_REQ(
  data: IbFpProductApi.QueryFprProductListReq,
  header: object = {},
): Promise<IbFpProductApi.QueryFprProductListResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}queryFprProductListReq`,
    data,
    header,
    'POST',
  );
}
/**
 * 查询物品信息结构体
 */
function ADD_FPR_PRODUCT_REQ(
  data: IbFpProductApi.AddFprProductReq,
  header: object = {},
): Promise<IbFpProductApi.AddFprProductResp> {
  return createRequest(`${process.env.APP_API_URL}${module}addFprProductReq`, data, header, 'POST');
}

/**
 * 添加文具领用
 */
function ADD_FPR_STATIONERY_REQ(
  data: IbFpProductApi.AddFprProductReq,
  header: object = {},
): Promise<IbFpProductApi.AddFprProductResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}addFprStationeryReq`,
    data,
    header,
    'POST',
  );
}

export { QUERY_FPR_PRODUCT_LIST_REQ, ADD_FPR_PRODUCT_REQ, ADD_FPR_STATIONERY_REQ };
